package us.wili.dev.client.model.rsp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import us.wili.dev.common.model.IdLongToStrSerializer;
import us.wili.dev.model.entity.Order;

import java.math.BigDecimal;

public class OrderDetaRsp {
    @ApiModelProperty(value="商品id")
    private Long goodsId;

    @ApiModelProperty(value="商品主图")
    private String goodsPic;

    @ApiModelProperty(value="商品名称")
    private String goodsName;

    @ApiModelProperty(value="商品颜色")
    private String goodsColor;

    @ApiModelProperty(value="商品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value="商品数量")
    private Integer goodsNum;

    @ApiModelProperty(value="收件人")
    private String shipname;

    @ApiModelProperty(value="收货地址")
    private String address;

    @ApiModelProperty(value="联系方式")
    private String shipphone;

    public static OrderDetaRsp orderDetaRsp(Order order){
        OrderDetaRsp rsp =new OrderDetaRsp();
//        rsp.setGoodsId(order.getGoodsId());
//        rsp.setGoodsPic(order.getGoodsPic());
//        rsp.setGoodsName(order.getGoodsName());
//        rsp.setGoodsColor(order.getGoodsColor());
//        rsp.setGoodsPrice(order.getGoodsPrice());
//        rsp.setGoodsNum(order.getGoodsNum());
        rsp.setShipname(order.getShipname());
        rsp.setAddress(order.getAddress());
        rsp.setShipphone(order.getShipphone());
        return rsp;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsColor() {
        return goodsColor;
    }

    public void setGoodsColor(String goodsColor) {
        this.goodsColor = goodsColor;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getShipname() {
        return shipname;
    }

    public void setShipname(String shipname) {
        this.shipname = shipname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getShipphone() {
        return shipphone;
    }

    public void setShipphone(String shipphone) {
        this.shipphone = shipphone;
    }
}
